package com.qf.openapi.web.master.dao;

import com.qf.openapi.web.master.entity.User;
import com.qf.openapi.web.master.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User login(@Param("username") String username, @Param("password") String password);

    void insert(User t_user);

    User getUserByName(String username);

    List<User> getUserByPage(@Param("start") int beginRow, @Param("limit") Integer limit);

    Integer selectCount();

    void addUser(User t_user);

    Integer deleteUserById(Integer[] ids);

    Integer updateUser(User user);

    String selectPasswordById(@Param("id") Integer id);

    List<User> getUsersByContditions(UserVo userVo);

    List<User> selectall();
}
